package name.jiaosha.air.company.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import name.jiaosha.air.system.domain.Goods;

/**
 * 配件字典
 * 
 * @author xu
 * 
 */
@Entity
@Table(name = "part")
@DiscriminatorValue("part")
public class Part extends Goods {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3443431090086932418L;

	/**
	 * 单价 0.08
	 */
	@Column(name = "unitPrice")
	private BigDecimal unitPrice;

	@Transient
	private List<PartPackage> packageItems = new ArrayList<PartPackage>();

	public Part() {

	}

	public BigDecimal getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(BigDecimal unitPrice) {
		this.unitPrice = unitPrice;
	}

	@Transient
	public List<PartPackage> getPackageItems() {
		return packageItems;
	}

	public void setPackageItems(List<PartPackage> packageItems) {
		this.packageItems = packageItems;
	}

}
